import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *
testCase="DBshop008_查询支付记录流程"
firefox=openBrowser(url)
firefox.get(urlAdmin)
DBshopLoginAdmin(firefox)
# 1.点击销售管理以及支付记录。
DBshopEnterMenu2(firefox,'销售管理','支付记录')
time.sleep(3)
# 2,点击"订单号"按钮，查看订单已发货还是未发货
firefox.find_element_by_link_text('1668406209110001').click()
text1=firefox.find_element_by_xpath("//span[@class='text-success']").text
try:
    text1=='订单完成'
    writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)
firefox.quit()